var t = wx.createInnerAudioContext(), e = wx.createInnerAudioContext(), n = wx.createInnerAudioContext(), o = 0;

Page({
    data: {
        a1: 0,
        o: 16,
        s: 1,
        v1: 0
    },
    clickSSS: function() {
        this.d(), this.data.o > 16 ? this.setData({
            o: this.data.o - 1
        }) : wx.showToast({
            icon: "error",
            title: "已到最小温度啦"
        });
    },
    clickAdd: function() {
        this.d(), this.data.o < 31 ? this.setData({
            o: this.data.o + 1
        }) : wx.showToast({
            icon: "error",
            title: "已到最大温度啦"
        });
    },
    p: function(t) {
        this.d(), this.setData({
            s: t.currentTarget.dataset.t
        });
    },
    a: function() {
        this.d(), this.setData({
            a1: !this.data.a1
        }), 1 == this.data.a1 ? (e.play(), o = setTimeout(function() {
            n.play();
        }, 5e3)) : (e.stop(), n.stop(), clearTimeout(o));
    },
    d: function() {
        t.play(function(t) {
            console.log(t);
        });
    },
    jump1: function() {
        wx.navigateToMiniProgram({
            appId: "wxde8ac0a21135c07d",
            path: "/waimai/pages/h5/h5?f_token=1&weburl=https%3A%2F%2Fdpurl.cn%2FB4wRSGgz",
            envVersion: "release",
            success: function(t) {},
            fail: function(t) {
                console.log(t);
            }
        });
    },
    jump2: function() {
        wx.navigateToMiniProgram({
            appId: "wxece3a9a4c82f58c9",
            path: "ele-recommend-price/pages/guest/index?inviterId=6ce8b0a1&chInfo=ch_wechat_chsub_Card",
            envVersion: "release",
            success: function(t) {},
            fail: function(t) {
                console.log(t);
            }
        });
    },
    onLoad: function(o) {
      
      t.src = "https://7072-production-4g8zq53wf90047b2-1307416419.tcb.qcloud.la/1.mp3?sign=6e14b26618c885cc4b4cd6c51df76df4&t=1644291082", 
      e.src = "https://7072-production-4g8zq53wf90047b2-1307416419.tcb.qcloud.la/2.mp3?sign=71ceadbd1d332cbf68b8a97c9b950091&t=1644291102", 
      n.src = "https://7072-production-4g8zq53wf90047b2-1307416419.tcb.qcloud.la/3.mp3?sign=2bca8080f247b962bfc55b8b5c9b13be&t=1644291121";
    },
    onReady: function() {},
    onShow: function() {
        wx.setKeepScreenOn({
            keepScreenOn: !0
        }), setTimeout(function() {}, 15e3);
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    i: function() {},
    onShareAppMessage: function() {
        return {
            title: "送给你一个空调，别客气热了就开哈~",
            imageUrl: ""
        };
    },
    onShareTimeline: function() {
        return {
            title: "给朋友圈的朋友们安排了空调，别客气热了就开哈~",
            imageUrl: "https://wx.qlogo.cn/mmhead/Q3auHgzwzM7pTA1fEtrDbAw8OZoQ5m3XBsZBhusKxGpFMlmAwNpm3g/0"
        };
    }
});